//
//  NSCalendar+EXExtension.m
//  MobileProject
//
//  Created by caiqilin on 2016/11/15.
//  Copyright © 2016年 caiqilin. All rights reserved.
//

#import "NSCalendar+EXExtension.h"

@implementation NSCalendar (EXExtension)
+ (instancetype)calendar
{
    if ([NSCalendar respondsToSelector:@selector(calendarWithIdentifier:)]) {
        return [NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian];
    } else {
        return [NSCalendar currentCalendar];
    }
}
@end
